<template>
  <div class="back">
    <div class="back-nav">
      <div class="back-logo">
        <img src="../assets/img/logo/logo.png" /> 掘铁
      </div>
      <div class="nav-rig">
        <div class="pro">
          <img src="../assets/img/user_avatar/avatar.png" />
        </div>
        <span>设置</span>
      </div>
    </div>
    <el-row class="tac">
      <el-col class="list" :span="12">
        <el-menu
          default-active="2"
          class="el-menu-vertical-demo"
          @open="handleOpen"
          @close="handleClose"
        >
          <el-submenu index="1">
            <template slot="title">
              <i class="el-icon-user"></i>
              <span>账号管理</span>
            </template>
            <el-menu-item-group>
              <el-menu-item index="1-1">选项1</el-menu-item>
              <el-menu-item index="1-2">选项2</el-menu-item>
            </el-menu-item-group>
          </el-submenu>
          <el-submenu index="2">
            <template slot="title">
              <i class="el-icon-user"></i>
              <span>什么管理</span>
            </template>
            <el-menu-item-group>
              <el-menu-item index="2-1">选项1</el-menu-item>
              <el-menu-item index="2-2">选项2</el-menu-item>
            </el-menu-item-group>
          </el-submenu>
          <el-submenu index="3">
            <template slot="title">
              <i class="el-icon-user"></i>
              <span>什么管理2</span>
            </template>
            <el-menu-item-group>
              <el-menu-item index="3-1">选项1</el-menu-item>
              <el-menu-item index="3-2">选项2</el-menu-item>
            </el-menu-item-group>
          </el-submenu>
        </el-menu>
      </el-col>
      <div class="tab">
        <table >
          <tr>
            <th>姓名</th>
            <th>账号</th>
            <th>密码</th>
          </tr>
            <tr></tr>
        </table>
      </div>
    </el-row>
  </div>
</template>
<script>
export default {
  data() {
    return {};
  },
  methods: {
    handleOpen(key, keyPath) {
      console.log(key, keyPath);
    },
    handleClose(key, keyPath) {
      console.log(key, keyPath);
    },
  },
};
</script>

<style>
.el-menu-vertical-demo:not(.el-menu--collapse) {
  width: 200px;
  min-height: 400px;
}
.back {
  width: 100%;
}
.back-nav {
  width: 100%;
  height: 50px;
 background: white;
  display: flex;
  justify-content: space-between;
}
.back-logo {
  float: left;
  line-height: 50px;
  font-size: 20px;
  font-size: 30px;
  color: #007fff;
  font-weight: bold;

  display: flex;
  justify-content: space-between;
}

.back-logo img {
  height: 50px;
}
.pro {
  overflow: hidden;
  height: 40px;
  width: 40px;
  border-radius: 50%;
  margin-top: 5px;
}
.pro img {
  height: 40px;
  width: 40px;
}
.nav-rig {
  color: #909090;
  line-height: 50px;
  display: flex;
  justify-content: space-between;
}
.nav-rig span {
  padding: 0 10px;
}
.list {
  width: 200px;
}

</style>